package com.shiminghui.test;

public class StringChengFa {
    public static void main(String[] args) {


        String s = "100";
        String s2 = "10";

        System.out.println(stringToNumber(s)*stringToNumber(s2));

    }

    private static int stringToNumber(String s) {
        int sum =0;
        for (int i = 0; i < s.length(); i++) {
            sum = sum*10+ s.charAt(i)-'0';
        }
        return sum;
    }


}
